﻿using System;

namespace ZilLion.Core.ConfigManager.Interface
{
    public interface IConfigProvider
    {
        /// <summary>
        /// 当前Config的类型
        /// </summary>
        Type ConfigurationType { get; set; }

        /// <summary>
        /// 当前ConfigInstance
        /// </summary>
        object CurrentConfigInstance { get; set; }
        /// <summary>
        ///     获取配置
        /// </summary>
        /// <returns></returns>
        object LoadConfig();

        /// <summary>
        ///     保存配置
        /// </summary>
        /// <param name="config"></param>
        void SaveConfig(object config);


    }
}